import {VFC, lazy, Suspense} from 'react';
import {Switch, Route, Redirect} from 'react-router-dom';

const Welcome = lazy(() => import('@/modules/Welcome'));

const App: VFC = () => {
    return (
        <Suspense fallback={null}>
            <Switch>
                <Route path="/welcome" component={Welcome} />
                <Redirect to="/welcome" />
            </Switch>
        </Suspense>
    );
};

export default App;
